<?php 
header("Content-type: application/pdf"); 
echo $content_for_layout; 
?> 